/**
 * @author mrdoob / http://mrdoob.com/
 */

import {UIPanel} from '../../js/threejs/libs/ui.js'

import {MenubarAdd} from './Menubar.Add.js'
import {MenubarEdit} from './Menubar.Edit.js'
import {MenubarFile} from './Menubar.File.js'
import {MenubarStatus} from './Menubar.Status.js'

var Menubar = function (editor) {
  var container = new UIPanel()
  container.setId('menubar')

  container.add(new MenubarFile(editor))
  container.add(new MenubarEdit(editor))
  container.add(new MenubarAdd(editor))

  container.add(new MenubarStatus(editor))

  return container
}

export {Menubar}
